<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$admin_title}</title>
<include file="./core/Modules/Center/Tpl/Public/js_css_header.html" />
<script type="text/javascript">
	
	function passCheck(idVal,cidVal) {
		jConfirm("确定设置为已联系？", 'Confirmation Dialog', function(r) {
			if(r == true){
				$.post("__APP__/center/reserve/docheck/",{id:idVal,cid:cidVal ,time: new Date().getTime() },function(data){
					if(data.status == 1){	//成功处理流
				    	$("#check_span"+idVal).html("已联系").css("color","green");
				    }else if(data.status == 4){	//刷新当前页
				    	window.location.reload();
				    }else{
				    	alert(data.msg);
				    }
				},"JSON");
			}
		});
	}
	
</script>
</head>
<body>
	<div style="width: 599px;margin: 0 auto;margin-top: 100px;">
		<table width="100%" cellpadding="0" cellspacing="0" class="line">
			<foreach name="field_list" item="field">
			<tr height="20">
				<td align="center" width="18%" class="tabl_line_bg">{$field.field_desc}</td>
				<td align="left">
					<strong><php>echo $obj[$field['field_name']];</php></strong>
				</td>
			</tr>
			</foreach>
			<tr height="20">
				<td align="center" width="18%" class="tabl_line_bg">状态</td>
				<td>
				<div>
					<if condition="$obj.reserve_status eq 0">
						<strong id="check_span{$obj.id}" style="color:gray;">
							<input type="button" name="passed" value="标识为已联系" onclick="passCheck({$obj.id},{$obj.catalog_id})"/>
						</strong>
					<else/>
						<strong id="check_span{$obj.id}" style="color:green;">已联系</strong>
					</if>
				</div>
				</td>
			</tr>
			<tr height="20">
				<td align="center" width="18%" class="tabl_line_bg">时间</td>
				<td align="left">
					<strong>{$obj.timeline}</strong>
				</td>
			</tr>
			<tr height="20">
				<td align="right" colspan="2"><a href="javascript:window.close();">关闭该页</a></td>
			</tr>
		</table>
	</div>
</body>
</html>
